package org.example.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.dto.SelectUserRoleResultDto;
import org.example.entity.User;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author
 * @since 2025-03-27
 */
public interface UsersMapper extends BaseMapper<User> {

    User FindUser(User usr);

    User FindUserByPhone(String phone);

    List<SelectUserRoleResultDto> selectUserRole(String phone);
//    List<Map<String, Object>> Login();
    int setUserPhone(String phone, Integer id);
}
